﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace Things.Web.CropsPlantProgress
{
    public partial class Show : Page
    {
        public string strid = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
                {
                    strid = Request.Params["id"];
                    Guid PlantProgressID = new Guid(strid);
                    ShowInfo(PlantProgressID);
                }
            }
        }

        private void ShowInfo(Guid PlantProgressID)
        {
            Things.BLL.CropsPlantProgress bll = new Things.BLL.CropsPlantProgress();
            Things.Model.CropsPlantProgress model = bll.GetModel(PlantProgressID);
            this.lblPlantProgressID.Text = model.PlantProgressID.ToString();
            this.lblPlantProgressName.Text = model.PlantProgressName;
            this.lblPlantProgressOrder.Text = model.PlantProgressOrder.ToString();

        }

        protected void btnGoList_Click(object sender, EventArgs e)
        {
            Response.Redirect("list.aspx");
        }


    }
}
